package com.xinghen.core.domain.file;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author xinghen
 * @ClassName: FileInfo
 * @Package: com.xinghen.core.domain.file
 * @Description 文件信息
 * @create 2017-12-07 16:48
 */
@Data
@ApiModel(description = "文件信息")
public class FileInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 文件ID
     */
    @ApiModelProperty(value = "文件ID", required = true, dataType = "string")
    private String id;

    /**
     * 文件名称
     */
    @ApiModelProperty(value = "文件名称", required = true, dataType = "string")
    private String name;

    /**
     * 文件相对路径
     */
    @ApiModelProperty(value = "文件相对路径", required = true, dataType = "string")
    private String relativePath;

    /**
     * 上下文类型
     */
    @ApiModelProperty(value = "上下文类型", required = true, dataType = "string")
    private String contentType;

    /**
     * 文件长度
     */
    @ApiModelProperty(value = "文件长度", required = true, dataType = "long")
    private Long size;

}
